package cn.bonoon.kernel.support.services.handler;


public class OperateMoveUpHandler extends AbstractMovableHandler{

	public OperateMoveUpHandler(String entityName) {
		super(entityName, "<? order by ordinal desc", ">=?", "<?");
	}

	@Override
	protected int getOrdinalTargetGreate(int targetOrder) {
		/*
		 * 被移动节点在目标节点上方
		 * 
		 */
		return targetOrder - 1;
	}

}
